package widget.common.utils
{
	public class MyLog
	{
		public static var isDebug:Boolean = true;
		private static var LOG_TARGET:String = "Websit";
		private static var instance:MyLog = null;
		
		public function MyLog()
		{
			if(instance){
				throw new Error("log singleton is error!!!");
			}
		}
		
		public static function getInstance():MyLog{
			if(!instance){
				instance = new MyLog();
			}
			return instance;
		}
		
		
		public static function debug(mess:Object):void{
			if(isDebug){
				trace(mess.toString());
			}
		}
		
		public function clear():void
		{
			instance = null;
		}

	}
}